package Principal;

public class Instruccion {

	 public Instruccion(int op, int r, int n, String d, String etiq) {
		super();
		this.op = op;
		this.r = r;
		this.n = n;
		this.d = d;
		this.etiq = etiq;
	}
	public Instruccion(int op, int n, String d, String etiq) {
		super();
		this.op = op;
		this.r = 0;
		this.n = n;
		this.d = d;
		this.etiq = etiq;
	}
	public Instruccion(int op, String etiq) {
		super();
		this.op = op;
		this.r = 0;
		this.n = 0;
		this.d = "";
		this.etiq = etiq;
	}
	
	private int op;
	 private int r;
	 private int n;
	 private String d;
	 private String etiq;
	 
	public int getOp() {
		return op;
	}
	public void setOp(int op) {
		this.op = op;
	}
	public int getR() {
		return r;
	}
	public void setR(int r) {
		this.r = r;
	}
	public int getN() {
		return n;
	}
	public void setN(int n) {
		this.n = n;
	}
	public String getEtiq() {
		return etiq;
	}
	public void setEtiq(String etiq) {
		this.etiq = etiq;
	}
	public String getD() {
		return d;
	}
	public void setD(String d) {
		this.d = d;
	}
	 
	public String toString(){
		String aux = "";
		
		aux= "(" + op + ") " + etiq + " r=" + Integer.toString(r);
		aux = aux.concat(" n=" + Integer.toString(n) + " d=" + d );
	    return aux;
	}
	
}
